package richbar.com.richbar.bean;

import com.common.base.BaseResult;

import java.util.List;

/**
 * Created by QiYang on 2018/11/20.
 */

public class CateRightResult extends BaseResult {

    /**
     * code : 200
     * msg : 请求成功
     * data : {"banner":[{"id":1,"img":"/upload/admin/img/catebanner/20181118/a60abbcca28f4ebcfdd7c42c5f577926.jpg","type":2,"obj":2,"title":"1111"},{"id":2,"img":"/upload/admin/img/catebanner/20181118/a60abbcca28f4ebcfdd7c42c5f577926.jpg","type":2,"obj":2,"title":"222"}],"cate":[{"id":2,"name":"热门分类","child":[{"id":3,"name":"女装","img":"/upload/admin/img/20181120/fa918d039eac0bd22e9ae9aadd7ffdfd.jpg"}]},{"id":1,"name":"专场推荐","child":[{"id":2,"name":"男装","img":"/upload/admin/img/20181120/7ad1a421ae6b21d2f212b94e05d69eac.jpg"}]}]}
     */

    private String msg;
    private DataEntity data;

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DataEntity getData() {
        return data;
    }

    public void setData(DataEntity data) {
        this.data = data;
    }

    public static class DataEntity {
        private List<BannerEntity> banner;
        private List<CateEntity> cate;

        public List<BannerEntity> getBanner() {
            return banner;
        }

        public void setBanner(List<BannerEntity> banner) {
            this.banner = banner;
        }

        public List<CateEntity> getCate() {
            return cate;
        }

        public void setCate(List<CateEntity> cate) {
            this.cate = cate;
        }

        public static class BannerEntity {
            /**
             * id : 1
             * img : /upload/admin/img/catebanner/20181118/a60abbcca28f4ebcfdd7c42c5f577926.jpg
             * type : 2
             * obj : 2
             * title : 1111
             */

            private int id;
            private String img;
            private int type;
            private int obj;
            private String title;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getImg() {
                return img;
            }

            public void setImg(String img) {
                this.img = img;
            }

            public int getType() {
                return type;
            }

            public void setType(int type) {
                this.type = type;
            }

            public int getObj() {
                return obj;
            }

            public void setObj(int obj) {
                this.obj = obj;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }
        }

        public static class CateEntity {
            /**
             * id : 2
             * name : 热门分类
             * child : [{"id":3,"name":"女装","img":"/upload/admin/img/20181120/fa918d039eac0bd22e9ae9aadd7ffdfd.jpg"}]
             */

            private int id;
            private String name;
            private List<ChildEntity> child;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public List<ChildEntity> getChild() {
                return child;
            }

            public void setChild(List<ChildEntity> child) {
                this.child = child;
            }

            public static class ChildEntity {
                /**
                 * id : 3
                 * name : 女装
                 * img : /upload/admin/img/20181120/fa918d039eac0bd22e9ae9aadd7ffdfd.jpg
                 */

                private int id;
                private String name;
                private String img;

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }

                public String getImg() {
                    return img;
                }

                public void setImg(String img) {
                    this.img = img;
                }
            }
        }
    }
}
